
import {FormItemEnum} from '../enum/formItem.enum';
import { ElFormItem, ElInput,ElInputNumber,ElRadio, ElRate, ElSelect, ElSlider,ElSwitch,ElTimePicker, ElTimeSelect, ElUpload } from 'element-plus';


/**
 * @description FormItemProps 表单项属性
 * @param {string} label 标签
 * @param {string} placeholder 占位符
 * @param {string} type 类型
 * @param {object} props 属性
 * @param {object} itemProps 表单项属性
 * */

export interface FormItemProps {
    label?: string;
    placeholder?: string | '请输入';
    type: FormItemEnum;
    props?: typeof ElFormItem;
    itemProps?: typeof ElInput | typeof ElInputNumber | typeof ElRadio | typeof ElRate | typeof ElSelect | typeof ElSlider | typeof ElSwitch | typeof ElTimePicker | typeof ElTimeSelect | typeof ElUpload;
}
